var Redis=require('ioredis');
var redis=new Redis();

redis.set('binary',new Buffer('Binary'));
redis.get('binary',(err,data)=>{
    console.log(err,data);
});